package com.zq.im.api;

import com.zq.im.bean.BaseModel;
import com.zq.im.modle.UnReceivedMessage;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by 张强 869518570@qq.com on 2020/9/22
 */
public interface MessageApi {

    /**
     * 获取未接收到消息
     *
     * @param userId
     * @return
     */
    @GET("/webchat/api/user/getUnReadMsgList")
    Call<BaseModel<List<UnReceivedMessage>>> getUnReceivedMessage(@Query("acceptUserId") String userId);

    /**
     * 获取未接收到消息
     *
     * @param userId
     * @return
     */
    @GET("/webchat/api/user/getUnReadMsgList")
    Observable<BaseModel<List<UnReceivedMessage>>> getUnReceivedMessage1(@Query("acceptUserId") String userId);



}
